﻿#include "Server.DragonInfoForm.h"
#include "../Server.SMain.h"
#include "../../Server/MirDatabase/DragonInfo.h"

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;

namespace Server
{

    Server::MirEnvir::Envir *DragonInfoForm::getEnvir() const
    {
        return SMain::getEnvir();
    }

    DragonInfoForm::DragonInfoForm()
    {
        InitializeComponent();
    }

    void DragonInfoForm::UpdateInterface()
    {
        DragonInfo *info = getEnvir()->DragonInfo;
        if (info == nullptr)
        {
            return;
        }

        EnableDragonCheckBox->CheckState = info->Enabled ? CheckState->Checked : CheckState::Unchecked;

        MapFileNameTextBox->Text = info->MapFileName;
        MonsterNameTextBox->Text = info->MonsterName;
        BodyNameTextBox->Text = info->BodyName;
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
        XTextBox->Text = info->Location->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
        YTextBox->Text = info->Location->Y.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
        DropAreaTopXTextBox->Text = info->DropAreaTop->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
        DropAreaTopYTextBox->Text = info->DropAreaTop->Y.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
        DropAreaBottomXTextBox->Text = info->DropAreaBottom->X.ToString();
//C# TO C++ CONVERTER TODO TASK: There is no C++ equivalent to 'ToString':
        DropAreaBottomYTextBox->Text = info->DropAreaBottom->Y.ToString();

        label8->Text = std::to_string(info->Level);
        label9->Text = std::to_string(info->Experience);

        Level1ExpTextBox->Text = std::to_string(info->Exps[0]);
        Level2ExpTextBox->Text = std::to_string(info->Exps[1]);
        Level3ExpTextBox->Text = std::to_string(info->Exps[2]);
        Level4ExpTextBox->Text = std::to_string(info->Exps[3]);
        Level5ExpTextBox->Text = std::to_string(info->Exps[4]);
        Level6ExpTextBox->Text = std::to_string(info->Exps[5]);
        Level7ExpTextBox->Text = std::to_string(info->Exps[6]);
        Level8ExpTextBox->Text = std::to_string(info->Exps[7]);
        Level9ExpTextBox->Text = std::to_string(info->Exps[8]);
        Level10ExpTextBox->Text = std::to_string(info->Exps[9]);
        Level11ExpTextBox->Text = std::to_string(info->Exps[10]);
        Level12ExpTextBox->Text = std::to_string(info->Exps[11]);

        tabPage1->Enabled = info->Enabled;
        tabPage2->Enabled = info->Enabled;
    }

    void DragonInfoForm::DragonInfoForm_Load(std::any sender, EventArgs *e)
    {
        UpdateInterface();
    }

    void DragonInfoForm::MapFileNameTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }

        getEnvir()->DragonInfo->MapFileName = ActiveControl->Text;
    }

    void DragonInfoForm::XTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->Location->X = temp;
    }

    void DragonInfoForm::YTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->Location->Y = temp;
    }

    void DragonInfoForm::MonsterNameTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }

        getEnvir()->DragonInfo->MonsterName = ActiveControl->Text;
    }

    void DragonInfoForm::BodyNameTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }

        getEnvir()->DragonInfo->BodyName = ActiveControl->Text;
    }

    void DragonInfoForm::DragonInfoForm_FormClosed(std::any sender, FormClosedEventArgs *e)
    {
        getEnvir()->SaveDB();
    }

    void DragonInfoForm::EnableDragonCheckBox_CheckStateChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }

        getEnvir()->DragonInfo->Enabled = EnableDragonCheckBox->Checked;
        UpdateInterface();
    }

    void DragonInfoForm::DropAreaTopXTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->DropAreaTop->X = temp;
    }

    void DragonInfoForm::DropAreaTopYTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->DropAreaTop->Y = temp;
    }

    void DragonInfoForm::DropAreaBottomXTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->DropAreaBottom->X = temp;
    }

    void DragonInfoForm::DropAreaBottomYTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        int temp;

        if (!int::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->DropAreaBottom->Y = temp;
    }

    void DragonInfoForm::Level1ExpTextBox_TextChanged(std::any sender, EventArgs *e)
    {
        if (ActiveControl != sender)
        {
            return;
        }
        long long temp;

        if (!long long::TryParse(ActiveControl->Text, temp))
        {
            ActiveControl->BackColor = Color::Red;
            return;
        }
        ActiveControl->BackColor = SystemColors::Window;


        getEnvir()->DragonInfo->Exps[static_cast<int>(ActiveControl->Tag)] = temp;
    }

    void DragonInfoForm::Dispose(bool disposing)
    {
        if (disposing && (components != nullptr))
        {
            components->Dispose();
        }
        System::Windows::Forms::Form::Dispose(disposing);
    }

    void DragonInfoForm::InitializeComponent()
    {
        this->EnableDragonCheckBox = new System::Windows::Forms::CheckBox();
        this->tabControl1 = new System::Windows::Forms::TabControl();
        this->tabPage1 = new System::Windows::Forms::TabPage();
        this->label1 = new System::Windows::Forms::Label();
        this->MapFileNameTextBox = new System::Windows::Forms::TextBox();
        this->panel2 = new System::Windows::Forms::Panel();
        this->DropAreaBottomYTextBox = new System::Windows::Forms::TextBox();
        this->label15 = new System::Windows::Forms::Label();
        this->DropAreaBottomXTextBox = new System::Windows::Forms::TextBox();
        this->label16 = new System::Windows::Forms::Label();
        this->DropAreaTopYTextBox = new System::Windows::Forms::TextBox();
        this->label11 = new System::Windows::Forms::Label();
        this->label12 = new System::Windows::Forms::Label();
        this->label10 = new System::Windows::Forms::Label();
        this->DropAreaTopXTextBox = new System::Windows::Forms::TextBox();
        this->label14 = new System::Windows::Forms::Label();
        this->label13 = new System::Windows::Forms::Label();
        this->label2 = new System::Windows::Forms::Label();
        this->panel1 = new System::Windows::Forms::Panel();
        this->label9 = new System::Windows::Forms::Label();
        this->label8 = new System::Windows::Forms::Label();
        this->label7 = new System::Windows::Forms::Label();
        this->label6 = new System::Windows::Forms::Label();
        this->XTextBox = new System::Windows::Forms::TextBox();
        this->label5 = new System::Windows::Forms::Label();
        this->label3 = new System::Windows::Forms::Label();
        this->BodyNameTextBox = new System::Windows::Forms::TextBox();
        this->YTextBox = new System::Windows::Forms::TextBox();
        this->label4 = new System::Windows::Forms::Label();
        this->MonsterNameTextBox = new System::Windows::Forms::TextBox();
        this->tabPage2 = new System::Windows::Forms::TabPage();
        this->label23 = new System::Windows::Forms::Label();
        this->label17 = new System::Windows::Forms::Label();
        this->Level6ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level12ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level7ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level5ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level11ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level1ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level8ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level2ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level4ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level10ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level9ExpTextBox = new System::Windows::Forms::TextBox();
        this->Level3ExpTextBox = new System::Windows::Forms::TextBox();
        this->label22 = new System::Windows::Forms::Label();
        this->label21 = new System::Windows::Forms::Label();
        this->label24 = new System::Windows::Forms::Label();
        this->label28 = new System::Windows::Forms::Label();
        this->label20 = new System::Windows::Forms::Label();
        this->label25 = new System::Windows::Forms::Label();
        this->label27 = new System::Windows::Forms::Label();
        this->label18 = new System::Windows::Forms::Label();
        this->label19 = new System::Windows::Forms::Label();
        this->label26 = new System::Windows::Forms::Label();
        this->tabControl1->SuspendLayout();
        this->tabPage1->SuspendLayout();
        this->panel2->SuspendLayout();
        this->panel1->SuspendLayout();
        this->tabPage2->SuspendLayout();
        this->SuspendLayout();
        // 
        // EnableDragonCheckBox
        // 
        this->EnableDragonCheckBox->AutoSize = true;
        this->EnableDragonCheckBox->Location = new System::Drawing::Point(14, 10);
        this->EnableDragonCheckBox->Name = "EnableDragonCheckBox";
        this->EnableDragonCheckBox->Size = new System::Drawing::Size(97, 17);
        this->EnableDragonCheckBox->TabIndex = 23;
        this->EnableDragonCheckBox->Text = "Enable Dragon";
        this->EnableDragonCheckBox->UseVisualStyleBackColor = true;
        this->EnableDragonCheckBox->CheckStateChanged += new System::EventHandler(this->EnableDragonCheckBox_CheckStateChanged);
        // 
        // tabControl1
        // 
        this->tabControl1->Controls->Add(this->tabPage1);
        this->tabControl1->Controls->Add(this->tabPage2);
        this->tabControl1->Location = new System::Drawing::Point(12, 33);
        this->tabControl1->Name = "tabControl1";
        this->tabControl1->SelectedIndex = 0;
        this->tabControl1->Size = new System::Drawing::Size(308, 211);
        this->tabControl1->TabIndex = 24;
        // 
        // tabPage1
        // 
        this->tabPage1->Controls->Add(this->label1);
        this->tabPage1->Controls->Add(this->MapFileNameTextBox);
        this->tabPage1->Controls->Add(this->panel2);
        this->tabPage1->Controls->Add(this->label2);
        this->tabPage1->Controls->Add(this->panel1);
        this->tabPage1->Controls->Add(this->XTextBox);
        this->tabPage1->Controls->Add(this->label5);
        this->tabPage1->Controls->Add(this->label3);
        this->tabPage1->Controls->Add(this->BodyNameTextBox);
        this->tabPage1->Controls->Add(this->YTextBox);
        this->tabPage1->Controls->Add(this->label4);
        this->tabPage1->Controls->Add(this->MonsterNameTextBox);
        this->tabPage1->Location = new System::Drawing::Point(4, 22);
        this->tabPage1->Name = "tabPage1";
        this->tabPage1->Padding = new System::Windows::Forms::Padding(3);
        this->tabPage1->Size = new System::Drawing::Size(300, 185);
        this->tabPage1->TabIndex = 0;
        this->tabPage1->Text = "Config";
        this->tabPage1->UseVisualStyleBackColor = true;
        // 
        // label1
        // 
        this->label1->AutoSize = true;
        this->label1->Location = new System::Drawing::Point(6, 18);
        this->label1->Name = "label1";
        this->label1->Size = new System::Drawing::Size(81, 13);
        this->label1->TabIndex = 8;
        this->label1->Text = "Map File Name:";
        // 
        // MapFileNameTextBox
        // 
        this->MapFileNameTextBox->Location = new System::Drawing::Point(93, 15);
        this->MapFileNameTextBox->Name = "MapFileNameTextBox";
        this->MapFileNameTextBox->Size = new System::Drawing::Size(47, 20);
        this->MapFileNameTextBox->TabIndex = 7;
        this->MapFileNameTextBox->TextChanged += new System::EventHandler(this->MapFileNameTextBox_TextChanged);
        // 
        // panel2
        // 
        this->panel2->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
        this->panel2->Controls->Add(this->DropAreaBottomYTextBox);
        this->panel2->Controls->Add(this->label15);
        this->panel2->Controls->Add(this->DropAreaBottomXTextBox);
        this->panel2->Controls->Add(this->label16);
        this->panel2->Controls->Add(this->DropAreaTopYTextBox);
        this->panel2->Controls->Add(this->label11);
        this->panel2->Controls->Add(this->label12);
        this->panel2->Controls->Add(this->label10);
        this->panel2->Controls->Add(this->DropAreaTopXTextBox);
        this->panel2->Controls->Add(this->label14);
        this->panel2->Controls->Add(this->label13);
        this->panel2->Location = new System::Drawing::Point(149, 41);
        this->panel2->Name = "panel2";
        this->panel2->Size = new System::Drawing::Size(145, 71);
        this->panel2->TabIndex = 22;
        // 
        // DropAreaBottomYTextBox
        // 
        this->DropAreaBottomYTextBox->Location = new System::Drawing::Point(106, 44);
        this->DropAreaBottomYTextBox->Name = "DropAreaBottomYTextBox";
        this->DropAreaBottomYTextBox->Size = new System::Drawing::Size(31, 20);
        this->DropAreaBottomYTextBox->TabIndex = 30;
        this->DropAreaBottomYTextBox->TextChanged += new System::EventHandler(this->DropAreaBottomYTextBox_TextChanged);
        // 
        // label15
        // 
        this->label15->AutoSize = true;
        this->label15->Location = new System::Drawing::Point(93, 47);
        this->label15->Name = "label15";
        this->label15->Size = new System::Drawing::Size(17, 13);
        this->label15->TabIndex = 29;
        this->label15->Text = "Y:";
        // 
        // DropAreaBottomXTextBox
        // 
        this->DropAreaBottomXTextBox->Location = new System::Drawing::Point(51, 44);
        this->DropAreaBottomXTextBox->Name = "DropAreaBottomXTextBox";
        this->DropAreaBottomXTextBox->Size = new System::Drawing::Size(31, 20);
        this->DropAreaBottomXTextBox->TabIndex = 28;
        this->DropAreaBottomXTextBox->TextChanged += new System::EventHandler(this->DropAreaBottomXTextBox_TextChanged);
        // 
        // label16
        // 
        this->label16->AutoSize = true;
        this->label16->Location = new System::Drawing::Point(38, 47);
        this->label16->Name = "label16";
        this->label16->Size = new System::Drawing::Size(17, 13);
        this->label16->TabIndex = 27;
        this->label16->Text = "X:";
        // 
        // DropAreaTopYTextBox
        // 
        this->DropAreaTopYTextBox->Location = new System::Drawing::Point(106, 20);
        this->DropAreaTopYTextBox->Name = "DropAreaTopYTextBox";
        this->DropAreaTopYTextBox->Size = new System::Drawing::Size(31, 20);
        this->DropAreaTopYTextBox->TabIndex = 26;
        this->DropAreaTopYTextBox->TextChanged += new System::EventHandler(this->DropAreaTopYTextBox_TextChanged);
        // 
        // label11
        // 
        this->label11->AutoSize = true;
        this->label11->Location = new System::Drawing::Point(-2, 47);
        this->label11->Name = "label11";
        this->label11->Size = new System::Drawing::Size(43, 13);
        this->label11->TabIndex = 20;
        this->label11->Text = "Bottom:";
        // 
        // label12
        // 
        this->label12->AutoSize = true;
        this->label12->Location = new System::Drawing::Point(93, 23);
        this->label12->Name = "label12";
        this->label12->Size = new System::Drawing::Size(17, 13);
        this->label12->TabIndex = 25;
        this->label12->Text = "Y:";
        // 
        // label10
        // 
        this->label10->AutoSize = true;
        this->label10->Location = new System::Drawing::Point(12, 23);
        this->label10->Name = "label10";
        this->label10->Size = new System::Drawing::Size(29, 13);
        this->label10->TabIndex = 19;
        this->label10->Text = "Top:";
        // 
        // DropAreaTopXTextBox
        // 
        this->DropAreaTopXTextBox->Location = new System::Drawing::Point(51, 20);
        this->DropAreaTopXTextBox->Name = "DropAreaTopXTextBox";
        this->DropAreaTopXTextBox->Size = new System::Drawing::Size(31, 20);
        this->DropAreaTopXTextBox->TabIndex = 24;
        this->DropAreaTopXTextBox->TextChanged += new System::EventHandler(this->DropAreaTopXTextBox_TextChanged);
        // 
        // label14
        // 
        this->label14->AutoSize = true;
        this->label14->Location = new System::Drawing::Point(38, 23);
        this->label14->Name = "label14";
        this->label14->Size = new System::Drawing::Size(17, 13);
        this->label14->TabIndex = 23;
        this->label14->Text = "X:";
        // 
        // label13
        // 
        this->label13->AutoSize = true;
        this->label13->Location = new System::Drawing::Point(-1, -1);
        this->label13->Name = "label13";
        this->label13->Size = new System::Drawing::Size(58, 13);
        this->label13->TabIndex = 18;
        this->label13->Text = "Drop Area:";
        // 
        // label2
        // 
        this->label2->AutoSize = true;
        this->label2->Location = new System::Drawing::Point(151, 18);
        this->label2->Name = "label2";
        this->label2->Size = new System::Drawing::Size(17, 13);
        this->label2->TabIndex = 9;
        this->label2->Text = "X:";
        // 
        // panel1
        // 
        this->panel1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
        this->panel1->Controls->Add(this->label9);
        this->panel1->Controls->Add(this->label8);
        this->panel1->Controls->Add(this->label7);
        this->panel1->Controls->Add(this->label6);
        this->panel1->Location = new System::Drawing::Point(73, 118);
        this->panel1->Name = "panel1";
        this->panel1->Size = new System::Drawing::Size(134, 62);
        this->panel1->TabIndex = 17;
        // 
        // label9
        // 
        this->label9->AutoSize = true;
        this->label9->Enabled = false;
        this->label9->Location = new System::Drawing::Point(72, 33);
        this->label9->Name = "label9";
        this->label9->Size = new System::Drawing::Size(31, 13);
        this->label9->TabIndex = 21;
        this->label9->Text = "#exp";
        // 
        // label8
        // 
        this->label8->AutoSize = true;
        this->label8->Enabled = false;
        this->label8->Location = new System::Drawing::Point(72, 10);
        this->label8->Name = "label8";
        this->label8->Size = new System::Drawing::Size(36, 13);
        this->label8->TabIndex = 20;
        this->label8->Text = "#level";
        // 
        // label7
        // 
        this->label7->AutoSize = true;
        this->label7->Enabled = false;
        this->label7->Location = new System::Drawing::Point(3, 33);
        this->label7->Name = "label7";
        this->label7->Size = new System::Drawing::Size(63, 13);
        this->label7->TabIndex = 19;
        this->label7->Text = "Experience:";
        // 
        // label6
        // 
        this->label6->AutoSize = true;
        this->label6->Enabled = false;
        this->label6->Location = new System::Drawing::Point(30, 10);
        this->label6->Name = "label6";
        this->label6->Size = new System::Drawing::Size(36, 13);
        this->label6->TabIndex = 18;
        this->label6->Text = "Level:";
        // 
        // XTextBox
        // 
        this->XTextBox->Location = new System::Drawing::Point(169, 15);
        this->XTextBox->Name = "XTextBox";
        this->XTextBox->Size = new System::Drawing::Size(31, 20);
        this->XTextBox->TabIndex = 10;
        this->XTextBox->TextChanged += new System::EventHandler(this->XTextBox_TextChanged);
        // 
        // label5
        // 
        this->label5->AutoSize = true;
        this->label5->Location = new System::Drawing::Point(22, 66);
        this->label5->Name = "label5";
        this->label5->Size = new System::Drawing::Size(65, 13);
        this->label5->TabIndex = 16;
        this->label5->Text = "Body Name:";
        // 
        // label3
        // 
        this->label3->AutoSize = true;
        this->label3->Location = new System::Drawing::Point(203, 18);
        this->label3->Name = "label3";
        this->label3->Size = new System::Drawing::Size(17, 13);
        this->label3->TabIndex = 11;
        this->label3->Text = "Y:";
        // 
        // BodyNameTextBox
        // 
        this->BodyNameTextBox->Location = new System::Drawing::Point(93, 63);
        this->BodyNameTextBox->Name = "BodyNameTextBox";
        this->BodyNameTextBox->Size = new System::Drawing::Size(47, 20);
        this->BodyNameTextBox->TabIndex = 15;
        this->BodyNameTextBox->TextChanged += new System::EventHandler(this->BodyNameTextBox_TextChanged);
        // 
        // YTextBox
        // 
        this->YTextBox->Location = new System::Drawing::Point(222, 15);
        this->YTextBox->Name = "YTextBox";
        this->YTextBox->Size = new System::Drawing::Size(31, 20);
        this->YTextBox->TabIndex = 12;
        this->YTextBox->TextChanged += new System::EventHandler(this->YTextBox_TextChanged);
        // 
        // label4
        // 
        this->label4->AutoSize = true;
        this->label4->Location = new System::Drawing::Point(8, 42);
        this->label4->Name = "label4";
        this->label4->Size = new System::Drawing::Size(79, 13);
        this->label4->TabIndex = 14;
        this->label4->Text = "Monster Name:";
        // 
        // MonsterNameTextBox
        // 
        this->MonsterNameTextBox->Location = new System::Drawing::Point(93, 39);
        this->MonsterNameTextBox->Name = "MonsterNameTextBox";
        this->MonsterNameTextBox->Size = new System::Drawing::Size(47, 20);
        this->MonsterNameTextBox->TabIndex = 13;
        this->MonsterNameTextBox->TextChanged += new System::EventHandler(this->MonsterNameTextBox_TextChanged);
        // 
        // tabPage2
        // 
        this->tabPage2->Controls->Add(this->label23);
        this->tabPage2->Controls->Add(this->label17);
        this->tabPage2->Controls->Add(this->Level6ExpTextBox);
        this->tabPage2->Controls->Add(this->Level12ExpTextBox);
        this->tabPage2->Controls->Add(this->Level7ExpTextBox);
        this->tabPage2->Controls->Add(this->Level5ExpTextBox);
        this->tabPage2->Controls->Add(this->Level11ExpTextBox);
        this->tabPage2->Controls->Add(this->Level1ExpTextBox);
        this->tabPage2->Controls->Add(this->Level8ExpTextBox);
        this->tabPage2->Controls->Add(this->Level2ExpTextBox);
        this->tabPage2->Controls->Add(this->Level4ExpTextBox);
        this->tabPage2->Controls->Add(this->Level10ExpTextBox);
        this->tabPage2->Controls->Add(this->Level9ExpTextBox);
        this->tabPage2->Controls->Add(this->Level3ExpTextBox);
        this->tabPage2->Controls->Add(this->label22);
        this->tabPage2->Controls->Add(this->label21);
        this->tabPage2->Controls->Add(this->label24);
        this->tabPage2->Controls->Add(this->label28);
        this->tabPage2->Controls->Add(this->label20);
        this->tabPage2->Controls->Add(this->label25);
        this->tabPage2->Controls->Add(this->label27);
        this->tabPage2->Controls->Add(this->label18);
        this->tabPage2->Controls->Add(this->label19);
        this->tabPage2->Controls->Add(this->label26);
        this->tabPage2->Location = new System::Drawing::Point(4, 22);
        this->tabPage2->Name = "tabPage2";
        this->tabPage2->Padding = new System::Windows::Forms::Padding(3);
        this->tabPage2->Size = new System::Drawing::Size(300, 185);
        this->tabPage2->TabIndex = 1;
        this->tabPage2->Text = "Exps";
        this->tabPage2->UseVisualStyleBackColor = true;
        // 
        // label23
        // 
        this->label23->AutoSize = true;
        this->label23->Location = new System::Drawing::Point(154, 150);
        this->label23->Name = "label23";
        this->label23->Size = new System::Drawing::Size(48, 13);
        this->label23->TabIndex = 32;
        this->label23->Text = "Level 12";
        // 
        // label17
        // 
        this->label17->AutoSize = true;
        this->label17->Location = new System::Drawing::Point(43, 23);
        this->label17->Name = "label17";
        this->label17->Size = new System::Drawing::Size(42, 13);
        this->label17->TabIndex = 10;
        this->label17->Text = "Level 1";
        // 
        // Level6ExpTextBox
        // 
        this->Level6ExpTextBox->Location = new System::Drawing::Point(92, 147);
        this->Level6ExpTextBox->Name = "Level6ExpTextBox";
        this->Level6ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level6ExpTextBox->TabIndex = 19;
        this->Level6ExpTextBox->Tag = "5";
        this->Level6ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level12ExpTextBox
        // 
        this->Level12ExpTextBox->Location = new System::Drawing::Point(203, 147);
        this->Level12ExpTextBox->Name = "Level12ExpTextBox";
        this->Level12ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level12ExpTextBox->TabIndex = 31;
        this->Level12ExpTextBox->Tag = "11";
        this->Level12ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level7ExpTextBox
        // 
        this->Level7ExpTextBox->Location = new System::Drawing::Point(203, 20);
        this->Level7ExpTextBox->Name = "Level7ExpTextBox";
        this->Level7ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level7ExpTextBox->TabIndex = 21;
        this->Level7ExpTextBox->Tag = "6";
        this->Level7ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level5ExpTextBox
        // 
        this->Level5ExpTextBox->Location = new System::Drawing::Point(92, 121);
        this->Level5ExpTextBox->Name = "Level5ExpTextBox";
        this->Level5ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level5ExpTextBox->TabIndex = 17;
        this->Level5ExpTextBox->Tag = "4";
        this->Level5ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level11ExpTextBox
        // 
        this->Level11ExpTextBox->Location = new System::Drawing::Point(203, 121);
        this->Level11ExpTextBox->Name = "Level11ExpTextBox";
        this->Level11ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level11ExpTextBox->TabIndex = 29;
        this->Level11ExpTextBox->Tag = "10";
        this->Level11ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level1ExpTextBox
        // 
        this->Level1ExpTextBox->Location = new System::Drawing::Point(92, 20);
        this->Level1ExpTextBox->Name = "Level1ExpTextBox";
        this->Level1ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level1ExpTextBox->TabIndex = 9;
        this->Level1ExpTextBox->Tag = "0";
        this->Level1ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level8ExpTextBox
        // 
        this->Level8ExpTextBox->Location = new System::Drawing::Point(203, 44);
        this->Level8ExpTextBox->Name = "Level8ExpTextBox";
        this->Level8ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level8ExpTextBox->TabIndex = 23;
        this->Level8ExpTextBox->Tag = "7";
        this->Level8ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level2ExpTextBox
        // 
        this->Level2ExpTextBox->Location = new System::Drawing::Point(92, 44);
        this->Level2ExpTextBox->Name = "Level2ExpTextBox";
        this->Level2ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level2ExpTextBox->TabIndex = 11;
        this->Level2ExpTextBox->Tag = "1";
        this->Level2ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level4ExpTextBox
        // 
        this->Level4ExpTextBox->Location = new System::Drawing::Point(92, 95);
        this->Level4ExpTextBox->Name = "Level4ExpTextBox";
        this->Level4ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level4ExpTextBox->TabIndex = 15;
        this->Level4ExpTextBox->Tag = "3";
        this->Level4ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level10ExpTextBox
        // 
        this->Level10ExpTextBox->Location = new System::Drawing::Point(203, 95);
        this->Level10ExpTextBox->Name = "Level10ExpTextBox";
        this->Level10ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level10ExpTextBox->TabIndex = 27;
        this->Level10ExpTextBox->Tag = "9";
        this->Level10ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level9ExpTextBox
        // 
        this->Level9ExpTextBox->Location = new System::Drawing::Point(203, 69);
        this->Level9ExpTextBox->Name = "Level9ExpTextBox";
        this->Level9ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level9ExpTextBox->TabIndex = 25;
        this->Level9ExpTextBox->Tag = "8";
        this->Level9ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // Level3ExpTextBox
        // 
        this->Level3ExpTextBox->Location = new System::Drawing::Point(92, 69);
        this->Level3ExpTextBox->Name = "Level3ExpTextBox";
        this->Level3ExpTextBox->Size = new System::Drawing::Size(47, 20);
        this->Level3ExpTextBox->TabIndex = 13;
        this->Level3ExpTextBox->Tag = "2";
        this->Level3ExpTextBox->TextChanged += new System::EventHandler(this->Level1ExpTextBox_TextChanged);
        // 
        // label22
        // 
        this->label22->AutoSize = true;
        this->label22->Location = new System::Drawing::Point(43, 150);
        this->label22->Name = "label22";
        this->label22->Size = new System::Drawing::Size(42, 13);
        this->label22->TabIndex = 20;
        this->label22->Text = "Level 6";
        // 
        // label21
        // 
        this->label21->AutoSize = true;
        this->label21->Location = new System::Drawing::Point(43, 124);
        this->label21->Name = "label21";
        this->label21->Size = new System::Drawing::Size(42, 13);
        this->label21->TabIndex = 18;
        this->label21->Text = "Level 5";
        // 
        // label24
        // 
        this->label24->AutoSize = true;
        this->label24->Location = new System::Drawing::Point(154, 124);
        this->label24->Name = "label24";
        this->label24->Size = new System::Drawing::Size(48, 13);
        this->label24->TabIndex = 30;
        this->label24->Text = "Level 11";
        // 
        // label28
        // 
        this->label28->AutoSize = true;
        this->label28->Location = new System::Drawing::Point(154, 23);
        this->label28->Name = "label28";
        this->label28->Size = new System::Drawing::Size(42, 13);
        this->label28->TabIndex = 22;
        this->label28->Text = "Level 7";
        // 
        // label20
        // 
        this->label20->AutoSize = true;
        this->label20->Location = new System::Drawing::Point(43, 98);
        this->label20->Name = "label20";
        this->label20->Size = new System::Drawing::Size(42, 13);
        this->label20->TabIndex = 16;
        this->label20->Text = "Level 4";
        // 
        // label25
        // 
        this->label25->AutoSize = true;
        this->label25->Location = new System::Drawing::Point(154, 98);
        this->label25->Name = "label25";
        this->label25->Size = new System::Drawing::Size(48, 13);
        this->label25->TabIndex = 28;
        this->label25->Text = "Level 10";
        // 
        // label27
        // 
        this->label27->AutoSize = true;
        this->label27->Location = new System::Drawing::Point(154, 47);
        this->label27->Name = "label27";
        this->label27->Size = new System::Drawing::Size(42, 13);
        this->label27->TabIndex = 24;
        this->label27->Text = "Level 8";
        // 
        // label18
        // 
        this->label18->AutoSize = true;
        this->label18->Location = new System::Drawing::Point(43, 47);
        this->label18->Name = "label18";
        this->label18->Size = new System::Drawing::Size(42, 13);
        this->label18->TabIndex = 12;
        this->label18->Text = "Level 2";
        // 
        // label19
        // 
        this->label19->AutoSize = true;
        this->label19->Location = new System::Drawing::Point(43, 72);
        this->label19->Name = "label19";
        this->label19->Size = new System::Drawing::Size(42, 13);
        this->label19->TabIndex = 14;
        this->label19->Text = "Level 3";
        // 
        // label26
        // 
        this->label26->AutoSize = true;
        this->label26->Location = new System::Drawing::Point(154, 72);
        this->label26->Name = "label26";
        this->label26->Size = new System::Drawing::Size(42, 13);
        this->label26->TabIndex = 26;
        this->label26->Text = "Level 9";
        // 
        // DragonInfoForm
        // 
        this->AutoScaleDimensions = new System::Drawing::SizeF(6.0F, 13.0F);
        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
        this->ClientSize = new System::Drawing::Size(329, 256);
        this->Controls->Add(this->tabControl1);
        this->Controls->Add(this->EnableDragonCheckBox);
        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
        this->MaximizeBox = false;
        this->MinimizeBox = false;
        this->Name = "DragonInfoForm";
        this->Text = "DragonInfoForm";
        this->FormClosed += new System::Windows::Forms::FormClosedEventHandler(this->DragonInfoForm_FormClosed);
        this->Load += new System::EventHandler(this->DragonInfoForm_Load);
        this->tabControl1->ResumeLayout(false);
        this->tabPage1->ResumeLayout(false);
        this->tabPage1->PerformLayout();
        this->panel2->ResumeLayout(false);
        this->panel2->PerformLayout();
        this->panel1->ResumeLayout(false);
        this->panel1->PerformLayout();
        this->tabPage2->ResumeLayout(false);
        this->tabPage2->PerformLayout();
        this->ResumeLayout(false);
        this->PerformLayout();

    }
}
